<script>
	export default {
		onLaunch: function() {
			// #ifdef MP-WEIXIN
			this.login()
			// #endif
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			//小程序静默登录
			login() {
				uni.login({
					provider: 'weixin', //使用微信登录
					success: (loginRes) => {
						// 通过code获取Token然后通过个人信息接口查看信息如果没有绑定手机号，就走手机号授权登录
						// 如果已经有手机号直接算登录
						console.log(loginRes);
						// uni.setStorageSync('isLogin', false)

					}
				})
			}
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import './static/css/common.scss';

	html,
	body {
		background-color: #f0f0f0;
	}



	view {
		padding: 0;
		margin: 0;
	}

	.flex-js {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.flex {
		display: flex;
		align-items: center;
	}

	.iconfont {
		font-family: "iconfont" !important;
		font-size: 16px;
		font-style: normal;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	.icon-fenxiang1:before {
		content: "\e600";
	}

	.icon-dianzan:before {
		content: "\e8ad";
	}

	.icon-dianzan1:before {
		content: "\e8c3";
	}


	/deep/::-webkit-scrollbar {
		display: none;
		width: 0;
		height: 0;
	}

	::-webkit-scrollbar {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
		-webkit-appearance: none;
		background: transparent;
	}
</style>